
int switchfunc(int type, int val)
{
	switch (type)
	{
		default: return val;
		case 0:  return val - 10;
		case 1:  return val / 10;
		case 2:  return val * 10;
		case 3:  return val + 10;
		case 4:  return val % 10;
		case 5:  return val & 10;
		case 6:  return val | 10;
		case 99:  return val ^ 10;
	}
}
